d/patches/fix_compilation: Add an upstream patch to
authorAaron M. Ucko <ucko@debian.org>
Thu, 2 Jul 2015 20:20:51 +0000 (20:20 +0000)
committerAaron M. Ucko <ucko@debian.org>
Thu, 2 Jul 2015 20:20:51 +0000 (20:20 +0000)
include/util/bitset/bmconst.h to fix builds with GCC 5 on platforms
such as arm64 on which char is unsigned.  (Closes: #790667.)

debian/changelog
debian/patches/fix_compilation

index b574bc7a48c6c97802491601340c08424de06313..5eaace2b1658caf8746b0ed454347de210f5faab 100644 (file)
@@ -1,8 +1,11 @@
 ncbi-blast+ (2.2.30-4) UNRELEASED; urgency=medium
 
   * NOT YET RELEASED.
+  * d/patches/fix_compilation: Add an upstream patch to
+    include/util/bitset/bmconst.h to fix builds with GCC 5 on platforms
+    such as arm64 on which char is unsigned.  (Closes: #790667.)
 
- -- Aaron M. Ucko <ucko@debian.org>  Thu, 02 Jul 2015 16:16:36 -0400
+ -- Aaron M. Ucko <ucko@debian.org>  Thu, 02 Jul 2015 16:20:49 -0400
 
 ncbi-blast+ (2.2.30-3) unstable; urgency=medium
 
index 43aae53bf68ee78412d1ce48ac3e548da08098ea..f5a8940bd579e3894d9e3b645579bf72bdc8eb49 100644 (file)
@@ -5,7 +5,7 @@ Author: Olivier Sallou <osallou@debian.org>
 Last-Updated: 2014-12-14
 --- a/c++/src/util/regexp/pcretest.c
 +++ b/c++/src/util/regexp/pcretest.c
-@@ -250,7 +250,7 @@
+@@ -250,7 +250,7 @@ for (;;)
      /* Read the next line by normal means, prompting if the file is stdin. */
  
        {
@@ -14,3 +14,19 @@ Last-Updated: 2014-12-14
        if (fgets((char *)here, rlen,  f) == NULL)
          return (here == start)? NULL : start;
        }
+--- a/c++/include/util/bitset/bmconst.h
++++ b/c++/include/util/bitset/bmconst.h
+@@ -147,11 +147,11 @@ const unsigned DeBruijn_bit_position<T>:
+ */
+ template<bool T> struct first_bit_table
+ {
+-    static const char _idx[256];
++    static const signed char _idx[256];
+ };
+ template<bool T>
+-const char first_bit_table<T>::_idx[256] = {
++const signed char first_bit_table<T>::_idx[256] = {
+   -1, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,
+     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,